Math Behind Bitcoin